package cn.zjyj.module.zjyj.controller.admin.risklist.vo;

import lombok.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.zjyj.framework.common.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.zjyj.framework.common.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 风险清单分页 Request VO")
@Data
public class RiskListPageReqVO extends PageParam {

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "类型（1:作业类，2:设备类，3:环境类，4公共类）", example = "1")
    private Integer type;

    @Schema(description = "名称", example = "王五")
    private String name;

    @Schema(description = "描述", example = "你猜")
    private String description;

    @Schema(description = "状态（0正常 1停用）", example = "2")
    private Integer status;

}